package com.blkj.iam.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blkj.iam.common.model.Option;
import com.blkj.iam.system.model.entity.Tenant;
import com.blkj.iam.system.model.form.TenantForm;
import com.blkj.iam.system.model.query.TenantPageQuery;
import com.blkj.iam.system.model.vo.TenantPageVO;

import java.util.List;

/**
 * @Description: 系统租户表
 * @Author: jeecg-boot
 * @Date: 2025-04-10
 * @Version: V1.0
 */
public interface TenantService extends IService<Tenant> {

    IPage<TenantPageVO> getTenantPage(TenantPageQuery queryParams);

    List<Option<Long>> listClientOptions();

    TenantForm getTenantFormData(Long tenantId);

    boolean saveTenant(TenantForm tenantForm);

    boolean updateTenant(Long tenantId, TenantForm tenantForm);

    boolean deleteTenants(String ids);
}
